import {checkPermi} from "@/utils/permission";

/** 检查交付物添加权限 */
export function checkModuleAddPermi(module) {
  return checkPermi(['system:module:add']);
}
/** 检查交付物删除权限 */
export function checkModuleDeletePermi(module,memberId) {
  return module.moduleId && (module.createById==memberId || checkPermi(['system:module:remove']));
}
/** 检查交付物编辑权限 */
export function checkModuleEditPermi(module,memberId) {
  return module.moduleId && (module.createById==memberId || checkPermi(['system:module:edit']));
}


